package com.ross.pojo;

import java.io.Serializable;
import java.util.List;

public class SysRoles implements Serializable {
    private Long id;//角色编号

    private String role;//角色标识 程序中判断使用，如"admin"

    private String description;//角色描述，UI界面显示使用

    private Long pid;//父节点id值

    private Boolean available = Boolean.FALSE; //是否可用，如果不可用将不会添加给用户

    private List<SysPermissions> res; //获取包装角色-权限信息的数据

    private static final long serialVersionUID = 1L;

    public SysRoles() {
    }

    public SysRoles(String role, String description, Boolean available) {
        this.role = role;
        this.description = description;
        this.available = available;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role == null ? null : role.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public Boolean getAvailable() {
        return available;
    }

    public void setAvailable(Boolean available) {
        this.available = available;
    }

    public List<SysPermissions> getRes() {
        return res;
    }

    public void setRes(List<SysPermissions> res) {
        this.res = res;
    }

}